home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Tools & Apps / Networking & Communications / AppleTalk Libraries / ReadMe < prev    next >
Encoding:
Text File  |  1991-12-03  |  4.2 KB  |  86 lines  |  [TEXT/MPS ]

  1.  
  2.  
  3.                                                                       TESTLIB
  4.                                 
  5. TestLib is a MPW tool which has been built to test the AppleTalk "libraries" 
  6. that I have developed :
  7.             - Zone Information Protocol        (ZIP.c)
  8.             - Name Binding Protocol            (NBP.c)
  9.             - AppleTalk Filing Protocol        (AFP.c)
  10.  
  11. These "librairies" can be used to implement AppleTalk functions. They have been tested but they probably contain errors, please inform me through AppleLink (BUTTIN) in order for me to maintain them.
  12.  
  13. This MPW tool :
  14.     - displays an AppleShare server time
  15.     - lists all the directories of an AppleShare volume with their access rights.
  16.  
  17. The Login on the server is done as guest or with username/password.
  18.  
  19. Using TestLib :
  20.         - Zone names are displayed
  21.         - Enter a zone name if any and validate your answer by the Enter key
  22.         - Server names are displayed
  23.         - Enter a server name and validate your answer by the Enter key
  24.         - Logging as guest is completed
  25.         - Server time as well as volume names are displayed
  26.         - Enter a volume name and validate your answer by the Enter key
  27.         - Volume access rights are displayed in guest mode
  28.         - For each directory accessible as guest, access rights are displayed
  29.     
  30.  
  31. AppleTalk libraries :
  32.  
  33. These libraries contain highlevel calls to be used to build an application. All the AppleTalk calls are issued synchronously.
  34. The AFP library shows how to use AFP calls to query a server (you need to refer to Inside AppleTalk to get the documentation about AFP calls).
  35.  
  36. The general philosophy is to issue a call providing a buffer to receive the results then to call a utility to extract the information from the buffer previously set.
  37. Example :    NBPGetList(buffer)                                  to get all the entities in the buffer
  38.                        NBPGetAddress(buffer,address)        to extract an AppleTalk address from the buffer
  39.             
  40. Warning about "permanent" memory :
  41. When you register a NBP entity, you must provide a buffer which must be available as long as the entity has not been removed.
  42. When you open an AFP session, you must provide a SCBBlock which must be available as long as the session has not been closed.
  43.  
  44.  
  45. NBP : contains all the Name Binding Protocol functions
  46.     
  47.           InitNBP                              Open the .MPP driver;Turn SelfSend mode on/off
  48.           CloseNBP                         Turn SelfSend mode on/off
  49.             SetSelfSend                     Turn SelfSend mode on/off
  50.             NBPGetList                       Get the list of entities with a specific entity name
  51.             NBPGetAddress               Extract the AppleTalk address of an entity
  52.             NBPRegisterEntity        Create an entry in the Name Binding Table
  53.             NBPRemoveEntity            Remove an entity from the Name Binding Table
  54.  
  55.  
  56. ZIP : contains all the Zone Information Protocol functions (for Phase 1 and Phase 2)
  57.  
  58.             GetZones                              Get the zones list
  59.             GetZoneName                    Extract  a zone name from the zones list
  60.             InitXPP                               Open the .XPP driver
  61.             XPPGetZoneList              Get the zones list using Phase 2 calls
  62.             InitATP                              Open the .ATP driver
  63.             ATPGetZoneList             Get the zones list    using Phase 1 calls
  64.  
  65.  
  66. AFP :    contains AppleTalk Filing Protocol functions and utilities to extract information
  67.  
  68.             InitXPP                                   Open the .ATP and .XPP drivers
  69.             GetServerInfo                   Get information about the server (name, UAMs, machine type)
  70.             LogOnwithName                  Open a session with username/password (no encryption of the password)
  71.             LogOnAsGuest                     Open a session in guest mode on an AppleShare server
  72.             GetServerParams            Get Server Information (Time and volumes)
  73.             OpenVolume                          Open an AppleShare volume
  74.             GetVolumePrivileges        Get volume privileges.
  75.             GetDirectories                    Get the subdirectories of a directory    
  76.             CloseVolume                         Close an AppleShare volume
  77.             LogOut                                     Stop the session
  78.  
  79. Utilities :
  80.             CheckUAM                             Check if a User Access Method is available
  81.             GetServerTime                   Calculate the server time in seconds (from 1 January 1904)
  82.             GetNumberVolumes           Get the number of volumes of the server
  83.             ExtractVolumeName          Get a volume name
  84.             GetNumberDirs                    Get the number of subdirectories of a directory
  85.             ExtractDirInfo                     Extract info regarding a subdirectory : name, dirID, access rights
  86.